package com.station.client.rpc;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.station.client.proxies.PStation;

public class RPCService implements RPCInterfaceAsync
{
	RPCInterfaceAsync service = (RPCInterfaceAsync) GWT.create(RPCInterface.class);
	ServiceDefTarget endpoint = (ServiceDefTarget) service;

	public RPCService()
	{
		endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + "rpc");
	}
	public void testRPC(PStation station, AsyncCallback callback)
	{
		service.testRPC(station, callback);
	}
}
